home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 13 / wdconfig.zip / WDCONFIG.DOC
Text File  |  1986-09-05  |  10KB  |  302 lines

  1.                    Sparta PCBoard Hard Drive Conference
  2.                      (201) 729-5377 or (201) 729-7056
  3.  
  4.  
  5.                      Auto-config Formatting Procedures
  6.                        Western Digital WD 1002S-WX2
  7.  
  8. The following information is taken directly from the Western Digital 
  9. Installation Guide for the WD 1002S-WX2 HD controller. For clarity
  10. I have inserted my own notes on some portions of the procedures that
  11. WD has lightly touched.
  12.  
  13. Step      Instructions
  14.  
  15. 1.    Correctly install or remove jumper on SW1-5. This is the
  16.     uppermost jumper on SW1.
  17.  
  18.         Note: This jumper tells the BIOS to read the jumpers 1-4
  19.               on SW1 for the corresponding table to use or to
  20.               accept keyboard input for the various parameters.
  21.  
  22.  
  23. 2.      At the A Prompt, insert the PC-DOS Supplemental Diskette;
  24.         load and run the PC-DOS debug utility by typing DEBUG.
  25.  
  26.             A>DEBUG c/r
  27.  
  28. 3.      At the debug prompt, initiate the WD format program by
  29.       typing the following command line. The debug prompt is the
  30.     hyphen "-".
  31.  
  32.             -g=c800:5 c/r
  33.  
  34. 4.      The WD format program will display the following message:
  35.  
  36.     WX2 Format Revision T.8 (c) Copyright Western digital Corp. 1985
  37.     Key in drive no and interleave as follows: d ii where
  38.                 d = relative no (0-1)
  39.             ii = interleave factor (1-16)
  40.  
  41.     Enter d and ii separated by a space and followed with a Return
  42.  
  43.     Example:
  44.             0 03 c/r
  45.  
  46.     NOTE: Drive C: = 0, Drive D: = 1. An interleave factor of 3 is
  47.     standard. If formatting two drives, this option must be run 
  48.     twice; once with d=0 and again with d=1.
  49.  
  50. 5.    The following message will be displayed:
  51.  
  52.     Key in disk characteristics as follows: ccc h rrr ppp ee oo
  53.     where
  54.     ccc = total number of cylinders (1-4 digits)
  55.     h   = number of heads (1-2 digits)
  56.        rrr = starting reduced write cylinder (1-4 digits)
  57.     ppp = write precomp cylinder (1-4 digits)
  58.     ee  = max correctable error burst (1-2 digits)
  59.     oo  = CCB option byte (1 hex digit)
  60.  
  61.     Enter each value separated by a space and follow entry with
  62.         a return
  63.  
  64.     Example:
  65.             306 4 128 128 11 05 c/r
  66.  
  67. 6.    CPU Response (did you know cpu's respond?)
  68.  
  69.     Are you virtually configuring the drive - Answer Y/N
  70.  
  71.     Enter a "Y" and c/r for yes or "N" and c/r for no.
  72.  
  73.     Sysop note: All this is asking is "Do you want to split
  74.                     the drive into more than one volume"?
  75.  
  76. 7.     If Yes, the following message is displayed.
  77.  
  78.     Key in virtual drive size list as vvvv
  79.     where vvvv = virtual drive size (1-4 digits)
  80.     
  81.     Enter two cylinder numbers, followed by a space and
  82.         c/r
  83.  
  84.     Note: The sum of these two numbers cannot exceed the 
  85.         maximum number of available cylinders on your hard disk.
  86.  
  87.     Example:
  88.             153 153 c/r
  89.  
  90.     If No, continue to next step
  91.  
  92. 8.    The following message will be displayed.
  93.  
  94.     Press "y" to begin formatting drive d with interleave ii.
  95.  
  96.     Note: d = drive number and ii = interleave factor.
  97.  
  98.     Type "Y" followed by a c/r
  99.  
  100. 9.    System Responses:
  101.  
  102.     If any key other than "Y" is typed, the program displays
  103.     the following message and returns to DOS.
  104.  
  105.     CPU response:
  106.     Nothing done exit
  107.     A>
  108.  
  109.     If an error occurs while formatting, the program will immediately
  110.     terminate, display the following error message, and return to DOS.
  111.     XX is the hexidecimal S-WX2 BIOS completion code.
  112.  
  113.     CPU response:
  114.     Error----completion code XX
  115.     A>
  116.  
  117.     If "Y" is typed, formatting is initiated. If there are no 
  118.     resulting errors, the program displays the following message.
  119.  
  120.     CPU response:
  121.     Do you want to format bad tracks - answer Y/N
  122.  
  123.     Respond with appropriate Y or N followed by a c/r
  124.  
  125. The user is prompted to enter, via the keyboard, a bad track list.
  126. This list should be provided by the drive manufacturer. However, due
  127. to DOS limitations, this procedure is not remommended.
  128.  
  129. Sysop note: Let the sucker format the bad tracks and then use Norton's
  130.             DT immediately after partitioning and high level format
  131.            is performed to pick up any bad track information and mark
  132.             them appropriately in the FAT.
  133.  
  134. Because of the logical addressing used by DOS, marking an entire track
  135. bad will result in more than one logical address being marked bad. As
  136. DOS can only accept a limited number of defects, a drive with excessive
  137. defects may cause the format program to termnate with an error. The
  138. displayed error is typically "TRACK 00 BAD - DRIVE UNUSABLE".
  139.  
  140. As a recommended alternative, execution of the DOS utility program
  141. FORMAT should correctly locate and deallocate all media defects.
  142.  
  143. 10.    If Yes, the following message is displayed.
  144.  
  145.     Key in bad track list as follows: ccc h ...(repeat)
  146.     where
  147.     ccc = bad track cylinder number (1-4 digits)
  148.     h   = bad track head number (1-2 digits)
  149.  
  150.     Type in the cylinder and head numbers for the bad tracks,
  151.     separate them with spaces, and follow with a c/r
  152.  
  153.     Example:
  154.             160 1 161 1 304 3 223 4 223 2 c/r
  155.  
  156.     The bad track message will be displayed again. To
  157.     terminate bad gtrack entry, type "N" followed by a c/r
  158.  
  159. 11.    The following message is displayed.
  160.     Format successful - Returning to system
  161.  
  162. If a second drive is to be formatted, repeat steps 4 through 13 with
  163. d = 1, otherwise continue.
  164.  
  165.  
  166. RUNNING THE FDISK UTILITY
  167.  
  168. The FDISK utility partitions the drive for DOS. Please refer to the
  169. PC-DOS operating manual for detailed instructions regarding this utility.
  170.  
  171. 12.    Load and run the FDISK utility to set up the disk partitions.
  172.  
  173. 13.       CPU Response:
  174.  
  175.     IBM Personal Computer
  176.     Fixed disk Setup Program Version 2.00
  177.     Copyright IBM Corp. 1983
  178.  
  179.     FDISK Options
  180.  
  181.     Choose one of the following:
  182.  
  183.     1. Create DOS Partition
  184.     2. Change Active Partition
  185.     3. Delete DOS Partition
  186.     4. Display Partition Data
  187.        [5. Select Next Fixed Disk Drive]
  188.  
  189.     Enter Choice:
  190.  
  191.     Note: When two disk drives are installed, the system will
  192.     automatically add a fifth choice on the menu:
  193.     "5. Select Next Fixed Disk Drive". The first drive is 
  194.     partitioned using choice number 1. Then, the second drive
  195.     is partitioned starting with choice number 5. All subsequent
  196.     steps are the same for both drives.
  197.  
  198.     Select "Create DOS Partition" and enter a 1 followed by a c/r.
  199.  
  200. 14.    The following message will be displayed:
  201.  
  202.     Create Dos Partition
  203.  
  204.     Do you wish to use the entire fixed
  205.     disk for DOS (Y/N)...........?
  206.  
  207.     Type a Y followed by a c/r
  208.  
  209. 15.     CPU response:
  210.  
  211.     System will now reboot
  212.  
  213.     Insert DOS diskette in Drive A:
  214.     Press any key when ready..
  215.  
  216. RUNNING THE FORMAT UTILITY
  217.  
  218. 16.    Load and run the PC-DOS utility program FORMAT to write the
  219.     DOS structure and syustem files to the disk. At the A prompt,
  220.     type FORMAT C: /S/V followed by a c/r
  221.  
  222. 17.     The CPU will respond with:
  223.     Press any key to begin formatting C:
  224.  
  225. 18.     The System will respond with:
  226.  
  227.     Formatting....Format Complete
  228.     system transferred
  229.  
  230.     Volume Label(11 Characters, ENTER for none)?
  231.  
  232. 19.    Either enter the optional volume name and press c/r or just
  233.     press c/r
  234.  
  235. 20.    When the FORMAT program is finished, the hard disk is ready to be
  236.     booted from. It will contain the file COMMAND.COM and the two
  237.     system files which are hidden.
  238.  
  239.     Note: This is known as the "high level" format process. If a
  240.     second drive, or Drive D:, is to be formatted, repeat steps
  241.     12 through 19. When running FDISK on the second drive, enter 
  242.     choice [5] first, then continue as before.
  243.  
  244. 21,      To verify that the hard disk will now boot, open the door of the
  245.     floppy drive and do a warm boot by simultaneously pressing CTRL,
  246.     ALT, and DEL (We call this the three finger salute). The system
  247.     BIOS first examines Drive A for a system diskette. If it doesn't
  248.     find one, then it will try to boot from the C drive, the hard
  249.     disk. If the hard disk boot is successful, the system will assert
  250.     the date, time, and C> prompts in order. Other files may now be
  251.     copied to the hard disk.
  252.  
  253.  
  254. Sysop Note: I am going to throw some technical mumbo jumbo in here just
  255. to make you feel comfortable with the info you are typing into the
  256. questions asked by WD's program.
  257.  
  258. The HD controller provides a system interface to the hardware and onboard
  259. BIOS through direct and indirect i/o. Direct access is accomplished
  260. by reading and writing to four I/O ports. Indirect access is achieved
  261. by executing pre-written I/O subroutines contained in the BIOS on the
  262. controller.
  263.  
  264. Commands are issued by the CPU to the controller over the host buss 
  265. using a pre-defined protocol (known as ST506/412). The CPU issues
  266. a command sequence by selecting the controller. The controller accepts
  267. the selection, and requests the appropriate command bytes. Upon command
  268. completion, the controller issues completion status to indicate whether
  269. the command was successfully completed or terminated because of an error.
  270.  
  271. Direct access operations are controlled through four I/O ports (assigned
  272. default addresses 320H, 321H, 322H, and 323H). Each port is assigned one
  273. Read register and one Write register as follows:
  274.                         Registers
  275. Port        Read                 Write
  276. 320H        Data IN            Data OUT
  277. 321H        Status            Reset (function)
  278. 322H        Configuration        Select (function)
  279. 323H        N/A            Mask
  280.  
  281.  
  282. The CPU specified the operation or command to be executed by the controller
  283. by sending a 6 or 10 byte Command Descriptor Block (CDB). The CCB we
  284. were asked for earlier in the WD formatter routine is called the Command
  285. Control Byte and is the last byte in the CDB. It specifies the error
  286. recovery procedure during the command execution. 
  287.  
  288. The ECC is comparable to CRC on a floppy drive. It is known as Error
  289. Correction Code and is set on or off by one of the bits in Byte 5 of
  290. the CDB. 
  291.  
  292. My fingers are tired at this point and I am not going to get into
  293. a further detailed discussion of each bit and its values in the
  294. CDB. If you wish to obtain further information, give us a call at
  295. Sparta PCBoard, join the HD conference, and fire away at us. We
  296. may not have the answer, but we can usually get it. 
  297.  
  298. Richard Driggers
  299. SysOp - Sparta PCBoard
  300.  
  301. -eof-
  302.